import request from '@/utils/request'
// ! 注册请求
export function register (data) {
  return request({
    method: 'POST',
    url: '/index/reg',
    data: data
  })
}

// ! 登录请求
export function login (data) {
  return request({
    method: 'POST',
    url: '/index/login',
    data: data
  })
}

// ! 用户信息
export function userInfo () {
  return request({
    url: '/user/getUserInfo'
  })
}
